#pragma once
#include "Triangle.h"
#include "Text.h"
#include "Shape.h"

class TextTriangle :public Triangle, public Text
{
public:
	//friend std::ostream& operator<<(std::ostream& os, const TextTriangle* dt){
	//	os << "Text in Triangle (" << dt->x1 << "," << dt->y1 << " ; "<< dt->x2 << ", " << dt->y2 << "; " << dt->x3 << ", " << dt->y3 << ")" << "Text(" << dt->x << ", " << dt->y << ")" << " (" << dt->text_p << ") Size = " << dt->size;
	//	return os;
	//};

	void moveShape(float new_x, float new_y);
	void rotateShape(float angle);
	void zoomShape(float zoom);

	void debugPrint();

	TextTriangle(float X1, float Y1, float X2, float Y2, float X3, float Y3, float TextX, float TextY, float size, char * str);
	~TextTriangle();
};

